import request from '@/utils/service'
export default {
    getBots(access) {
        return request({
            method: "get",
            url: `/user/bot/getlist`,
            headers: {
                Authorization: "token:" + access, //指定消息格式
            },
        })
    },
    deleteBot(id, access) {
        return request({
            method: "delete",
            url: `/user/bot/remove`,
            params: {
                id
            },
            headers: {
                Authorization: "token:" + access, //指定消息格式
            },
        })
    },
    addBot(BotAddDto, access) {
        return request({
            method: "post",
            url: `/user/bot/add`,
            data: BotAddDto,
            headers: {
                Authorization: "token:" + access, //指定消息格式
            },
        })
    },
    updateBot(BotUpdateDto, access) {
        return request({
            method: "put",
            url: `/user/bot/update`,
            data: BotUpdateDto,
            headers: {
                Authorization: "token:" + access, //指定消息格式
            },
        })
    },
}